package com.repair;

import com.repair.filter.CorsFilter;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import javax.servlet.annotation.WebFilter;

@SpringBootApplication
@MapperScan("com.repair.mapper")
@ComponentScan(
        value = "com.repair"
        ,includeFilters = @ComponentScan.Filter(
                type = FilterType.ANNOTATION,
                classes = WebFilter.class
        )
)
public class ServerZhangApplication {
    public static void main(String[] args) {
        System.out.println("情韵");
        System.out.println("情韵2");
        SpringApplication.run(ServerZhangApplication.class, args);
    }

}
